package com.yyy.dm.provider.controller;

import com.yyy.dm.provider.service.OrderLinkUserProviderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderLinkUserProviderController {

    @Resource
    private OrderLinkUserProviderService orderLinkUserProviderService;

    @PostMapping("/rollbackOrderLinkUser")
    public Integer rollbackOrderLinkUser(@RequestBody Long orderId){
        return orderLinkUserProviderService.rollbackOrderLinkUser(orderId);
    }
}
